package com.danielei.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@Slf4j
@Controller
public class PageController {

    @GetMapping(value = "{page}")
    public String page(@PathVariable("page") String page){
        log.info("进入页面：{}",page);
        return page;
    }


    @GetMapping("/test")
    @ResponseBody
    public String test(){
        log.info("test添加方法可以热部署嘛?");
        return "OK";
    }

}
